<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <h3 class="panel-title">入库报表</h3>
    </div>

    <div class="panel-body">
        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">报表条件</h3>
                    </div>
                    <div class="panel-body">
                        <form id="report-form" class="form-horizontal">
                            <div class="row">
                                <div class="col-sm-3">
                                    <div class="form-group">
                                        <label class="control-label">报表类型:</label>
                                        <select class="form-control" name="report_type">
                                            <option value="summary">汇总报表</option>
                                            <option value="material">物料入库报表</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="form-group">
                                        <label class="control-label">开始日期:</label>
                                        <input type="date" class="form-control" name="start_date" value="{$start_date|default=date('Y-m-01')}">
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="form-group">
                                        <label class="control-label">结束日期:</label>
                                        <input type="date" class="form-control" name="end_date" value="{$end_date|default=date('Y-m-d')}">
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <div class="form-group">
                                        <label class="control-label">&nbsp;</label>
                                        <div>
                                            <button type="button" class="btn btn-primary" id="btn-generate-report">
                                                <i class="fa fa-file-text"></i> 生成报表
                                            </button>
                                            <button type="button" class="btn btn-success" id="btn-export-report">
                                                <i class="fa fa-download"></i> 导出Excel
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">报表数据</h3>
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered" id="report-table">
                                <thead id="report-thead">
                                </thead>
                                <tbody id="report-tbody">
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

